import request from '@/utils/request'
  //getCoursePageList: query => post('/api/admin/course/coursePage', query),
  export function getCoursePageList(data) {
    return request({
      url: '/api/admin/course/coursePage',
      method: 'post',
      data: data
    })
  }
  //createCourse: query => post('/api/admin/course/edit', query),
  export function createCourse(data) {
    return request({
      url: '/api/admin/course/edit',
      method: 'post',
      data: data
    })
  }
  //deleteCourse: id => get('/api/admin/course/delete/' + id),
  export function deleteCourse(id) {
    return request({
      url: '/api/admin/course/delete/' + id,
      method: 'get'
    })
  }
  //changeStatus: id => get('/api/admin/course/changeStatus/' + id),
  export function changeStatus(id) {
    return request({
      url: '/api/admin/course/changeStatus/' + id,
      method: 'get'
    })
  }
  //selectCourse: id => get('/api/admin/course/select/' + id),
  export function selectCourse(id) {
    return request({
      url: '/api/admin/course/select/' + id,
      method: 'get'
    })
  }
  
  
    //管理端：为课程上传封面
    export function form() {
      return request({
        url: '/api/admin/course/courseCoverUpload',
        method: 'post'
      })
    }
  //课程绑定试卷
  //bindPaper: query => post('/api/admin/course/bindExamPaper', query),
  export function bindPaper(data) {
    return request({
      url: '/api/admin/course/bindExamPaper',
      method: 'post',
      data: data
    })
  }
  //获取课程绑定的试卷
  //getPager: data => get('/api/admin/course/getBindExamPaper/'+data),
  export function getPager(data) {
    return request({
      url: '/api/admin/course/getBindExamPaper/' + data,
      method: 'get'
    })
  }
  //获取课程绑定的视频
  //getVPager: data =>get("/api/admin/course/getBindSubCourse/" +data)
  export function getVPager(data) {
    return request({
      url: '/api/admin/course/getBindSubCourse/' + data,
      method: 'get'
    })
  }
